package com.hlt.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzf
 * @since 2024-11-25
 */
@TableName("user_stats")
public class UserStats implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID，主键
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 关注数
     */
    private Integer followingCount;

    /**
     * 粉丝数
     */
    private Integer followersCount;

    /**
     * 喜欢的文章数
     */
    private Integer likedPostsCount;

    /**
     * 收藏的文章数
     */
    private Integer favoritedPostsCount;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getFollowingCount() {
        return followingCount;
    }

    public void setFollowingCount(Integer followingCount) {
        this.followingCount = followingCount;
    }
    public Integer getFollowersCount() {
        return followersCount;
    }

    public void setFollowersCount(Integer followersCount) {
        this.followersCount = followersCount;
    }
    public Integer getLikedPostsCount() {
        return likedPostsCount;
    }

    public void setLikedPostsCount(Integer likedPostsCount) {
        this.likedPostsCount = likedPostsCount;
    }
    public Integer getFavoritedPostsCount() {
        return favoritedPostsCount;
    }

    public void setFavoritedPostsCount(Integer favoritedPostsCount) {
        this.favoritedPostsCount = favoritedPostsCount;
    }

    @Override
    public String toString() {
        return "UserStats{" +
            "userId=" + userId +
            ", followingCount=" + followingCount +
            ", followersCount=" + followersCount +
            ", likedPostsCount=" + likedPostsCount +
            ", favoritedPostsCount=" + favoritedPostsCount +
        "}";
    }
}
